package com.ruoyi.hazard.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 设施风险对象 hazard_risk_equipment
 * 
 * @author ruoyi
 * @date 2025-10-25
 */
public class HazardRiskEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    @Excel(name = "标识")
    private Long id;

    /** 类型 */
    private Long type;

    /** 部门id */
    private Long deptId;

    @Excel(name = "监所名称")
    private String deptName;

    /** 设备设施 */
    @Excel(name = "设备设施")
    private String name;

    /** 危险源 */
    @Excel(name = "危险源")
    private String source;

    /** 危险发生的触发因素和过程 */
    @Excel(name = "危险发生的触发因素和过程")
    private String reason;


    @Excel(name = "可能导致的后果")
    private String result;
    /** 可能导致的后果 */
    private List<String> consequence;

    /** 风险等级 */
    @Excel(name = "风险等级")
    private String riskLevel;

    /** 管控措施 */
    @Excel(name = "管控措施")
    private String solution;

    /** 责任部门 */
    @Excel(name = "责任部门")
    private String monitorLevel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    public void setConsequence(List<String> consequence)
    {
        this.consequence = consequence;
    }

    public List<String> getConsequence()
    {
        return consequence;
    }

    public void setRiskLevel(String riskLevel) 
    {
        this.riskLevel = riskLevel;
    }

    public String getRiskLevel() 
    {
        return riskLevel;
    }

    public void setSolution(String solution) 
    {
        this.solution = solution;
    }

    public String getSolution() 
    {
        return solution;
    }

    public void setMonitorLevel(String monitorLevel) 
    {
        this.monitorLevel = monitorLevel;
    }

    public String getMonitorLevel() 
    {
        return monitorLevel;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("deptId", getDeptId())
            .append("name", getName())
            .append("source", getSource())
            .append("reason", getReason())
            .append("consequence", getConsequence())
            .append("riskLevel", getRiskLevel())
            .append("solution", getSolution())
            .append("monitorLevel", getMonitorLevel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
